package com.example.mygrade.service.impl;

import com.example.mygrade.domain.SubjectCompare;
import com.example.mygrade.domain.SubjectStatic;
import com.example.mygrade.repository.SubjectCompareRepository;
import com.example.mygrade.service.SubjectCompareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectCompareImplService implements SubjectCompareService {
    @Autowired
    SubjectCompareRepository subjectCompareRepository;

    public List<SubjectCompare> findAll(){
        return subjectCompareRepository.findAll();
    }

    public List<SubjectCompare> findByMidAndGradeidAndCname(String mid, Integer gradeid,String cname){
        return subjectCompareRepository.findByMidAndGradeidAndCname(mid,gradeid,cname);
    }
}
